//
//  HeaderView.m
//  BaoVn
//
//  Created by Tai Le on 12/30/14.
//  Copyright (c) 2014 Le Anh Tai. All rights reserved.
//

#import "HeaderView.h"

@implementation HeaderView

- (instancetype)init
{
    if (self = [super init])
    {
        _titleLabel = [[UILabel alloc] init];
        _titleLabel.backgroundColor = [UIColor clearColor];
        _titleLabel.textColor = [UIColor whiteColor];
        _titleLabel.font = FONT(14);
        [self addSubview:_titleLabel];
    }
    
    return self;
}

- (void)setFrame:(CGRect)frame
{
    [super setFrame:frame];
    
    NSInteger margin = 8;
    
    _titleLabel.frame = RECT(margin, 0, self.width - margin*2, self.height);
}

@end
